﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TouchSocket.Dmtp.Rpc;
using TouchSocket.Rpc;

namespace TouchSocket_test.RPC
{
    public partial class ReverseCallbackServer : RpcServer
    {
        [DmtpRpc(true)]//使用方法名作为调用键
        public string SayHello(string name)
        {
            Debug.WriteLine($"服务端调用了");
            return $"{name},hi";
        }

        [DmtpRpc(true)]//使用方法名作为调用键
        public string nihao(string name)
        {
            Debug.WriteLine($"客户端");
            return $"{name},hi";
        }
    }
}
